package com.tanhua.dubbo.server.api;

import com.tanhua.dubbo.server.pojo.Sound;
import com.tanhua.dubbo.server.pojo.SoundTime;

import java.util.List;

public interface SoundApi {

    /**
     * 发送语音
     *
     * @param sound
     * @return
     */
    String saveSound(Sound sound);

    /**
     * 接收语音
     *
     * @param userId
     * @return
     */
    SoundTime querySoundByUserId(Long userId);

    List<Sound> querySounds();

    void deleteSound (Long userId, Long likeUserId);
}
